package com.zzw.repository;

import com.zzw.entity.COrder;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author: zhangzhiwei
 * @Date: 2022/5/24 22:16
 */
public interface COrderRepository extends JpaRepository<COrder, Long> {

    List<COrder> findByUserIdAndCompanyId(Integer userId, Integer companyId);
}
